<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>tomcat | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="tomcat安装教程与tomcat环境变量配置1.tomcat介绍Tomcat是Apache 软件基金会（Apache Software Foundation）的Jakarta 项目中的一个核心项目，由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持，最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现，Tomcat 5支持最新的Servlet">
<meta property="og:type" content="article">
<meta property="og:title" content="tomcat">
<meta property="og:url" content="http://example.com/2021/11/01/Tomcat%E5%AE%89%E8%A3%85/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="tomcat安装教程与tomcat环境变量配置1.tomcat介绍Tomcat是Apache 软件基金会（Apache Software Foundation）的Jakarta 项目中的一个核心项目，由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持，最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现，Tomcat 5支持最新的Servlet">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://pic8.58cdn.com.cn/nowater/webim/big/n_v215b96886744d4709a4065d2d797b36fc.png">
<meta property="og:image" content="https://pic6.58cdn.com.cn/nowater/webim/big/n_v29c80d66f22c0483895fb2078ec234610.png">
<meta property="og:image" content="https://pic5.58cdn.com.cn/nowater/webim/big/n_v2be3fe1245a33426eb622ea35e72ab72c.png">
<meta property="og:image" content="https://pic6.58cdn.com.cn/nowater/webim/big/n_v2bafae7317c964479985d03668bed7060.png">
<meta property="og:image" content="https://pic8.58cdn.com.cn/nowater/webim/big/n_v215b96886744d4709a4065d2d797b36fc.png">
<meta property="og:image" content="https://pic8.58cdn.com.cn/nowater/webim/big/n_v2da9151cf918b48fca1c346bf3ba7afc1.png">
<meta property="og:image" content="https://pic3.58cdn.com.cn/nowater/webim/big/n_v2b1f140d92cd440c7a08a174837343953.png">
<meta property="og:image" content="https://pic8.58cdn.com.cn/nowater/webim/big/n_v2d5a759a9cdd94098a3e6e0f35c7a48f7.png">
<meta property="og:image" content="https://pic2.58cdn.com.cn/nowater/webim/big/n_v2204b93027adc439dac1f100111fe2608.png">
<meta property="og:image" content="https://pic3.58cdn.com.cn/nowater/webim/big/n_v27371fa58b15942a3b26721f835c15765.png">
<meta property="og:image" content="https://pic5.58cdn.com.cn/nowater/webim/big/n_v2dc014c9c4e584d2ab7e18433dc7d4c06.png">
<meta property="og:image" content="https://pic6.58cdn.com.cn/nowater/webim/big/n_v271a386957a7c40a6bfc65659358e4d35.png">
<meta property="og:image" content="https://pic4.58cdn.com.cn/nowater/webim/big/n_v261e0535a77fd45bb955e074f3870b74e.png">
<meta property="og:image" content="https://pic5.58cdn.com.cn/nowater/webim/big/n_v29f8a45fad160421897eb42a08d588f97.png">
<meta property="og:image" content="https://pic2.58cdn.com.cn/nowater/webim/big/n_v21011f8f4d648419390bcc39537232700.png">
<meta property="og:image" content="https://pic5.58cdn.com.cn/nowater/webim/big/n_v2189972c4b63a465b819f13d9fbfbd9c9.png">
<meta property="og:image" content="https://pic7.58cdn.com.cn/nowater/webim/big/n_v287a028bdadb543abaa31f535de09407f.png">
<meta property="og:image" content="https://pic6.58cdn.com.cn/nowater/webim/big/n_v25b18bdf02f6f44d484cd6f7c80ec412c.png">
<meta property="og:image" content="https://pic8.58cdn.com.cn/nowater/webim/big/n_v2ec0baa4d66ee472d86bb2d7aec694591.png">
<meta property="og:image" content="https://pic3.58cdn.com.cn/nowater/webim/big/n_v2cbefbd21a8f64a939c3f8423d48e57ee.png">
<meta property="article:published_time" content="2021-11-01T09:39:15.000Z">
<meta property="article:modified_time" content="2021-11-01T16:06:09.989Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="tomcat">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://pic8.58cdn.com.cn/nowater/webim/big/n_v215b96886744d4709a4065d2d797b36fc.png">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-Tomcat安装" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/11/01/Tomcat%E5%AE%89%E8%A3%85/" class="article-date">
  <time class="dt-published" datetime="2021-11-01T09:39:15.000Z" itemprop="datePublished">2021-11-01</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      tomcat
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h1 id="tomcat安装教程与tomcat环境变量配置"><a href="#tomcat安装教程与tomcat环境变量配置" class="headerlink" title="tomcat安装教程与tomcat环境变量配置"></a>tomcat安装教程与tomcat环境变量配置</h1><h2 id="1-tomcat介绍"><a href="#1-tomcat介绍" class="headerlink" title="1.tomcat介绍"></a>1.tomcat介绍</h2><p>Tomcat是Apache 软件基金会（Apache Software Foundation）的Jakarta 项目中的一个核心项目，由<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/Apache/6265">Apache</a>、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持，最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现，Tomcat 5支持最新的Servlet 2.4 和JSP 2.0 规范。因为Tomcat 技术先进、性能稳定，而且免费，因而深受Java 爱好者的喜爱并得到了部分软件开发商的认可，成为比较流行的Web 应用服务器。</p>
<p>Tomcat 服务器是一个免费的开放源代码的Web 应用服务器，属于轻量级应用<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/%E6%9C%8D%E5%8A%A1%E5%99%A8">服务器</a>，在中小型系统和并发访问用户不是很多的场合下被普遍使用，是开发和调试JSP 程序的首选。对于一个初学者来说，可以这样认为，当在一台机器上配置好Apache 服务器，可利用它响应<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/HTML">HTML</a>（<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/%E6%A0%87%E5%87%86%E9%80%9A%E7%94%A8%E6%A0%87%E8%AE%B0%E8%AF%AD%E8%A8%80/6805073">标准通用标记语言</a>下的一个应用）页面的访问请求。实际上Tomcat是Apache 服务器的扩展，但运行时它是独立运行的，所以当你运行tomcat 时，它实际上作为一个与Apache 独立的进程单独运行的。</p>
<p>详情介绍可见百度百科：<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/tomcat/255751?fr=aladdin">https://baike.baidu.com/item/tomcat/255751?fr=aladdin</a></p>
<h2 id="2-安装准备"><a href="#2-安装准备" class="headerlink" title="2.安装准备"></a>2.安装准备</h2><p>（1）JDk</p>
<p>（2）window 10</p>
<h2 id="3-tomcat安装（这里我以tomcat-9-0-54-为例-（其一））"><a href="#3-tomcat安装（这里我以tomcat-9-0-54-为例-（其一））" class="headerlink" title="3.tomcat安装（这里我以tomcat 9.0.54 为例 （其一））"></a>3.tomcat安装（这里我以tomcat 9.0.54 为例 （其一））</h2><p>官网下载：<a target="_blank" rel="noopener" href="http://tomcat.apache.org/">http://tomcat.apache.org/</a></p>
<p><img src="https://pic8.58cdn.com.cn/nowater/webim/big/n_v215b96886744d4709a4065d2d797b36fc.png" alt="Tomcat官网"></p>
<p>点击Download后跳转到下面的界面</p>
<p><img src="https://pic6.58cdn.com.cn/nowater/webim/big/n_v29c80d66f22c0483895fb2078ec234610.png" alt="下载选择"></p>
<p>点击安装包之后选择自己想安装的路径（不建议安装到C盘中)</p>
<p><img src="https://pic5.58cdn.com.cn/nowater/webim/big/n_v2be3fe1245a33426eb622ea35e72ab72c.png"></p>
<p>下载完成后在打开所在文件夹，并将压缩包进行解压（解压后Tomcat就算安装好了，但现在并不能使用，我们还需要配置Tomcat的环境变量）</p>
<p><img src="https://pic6.58cdn.com.cn/nowater/webim/big/n_v2bafae7317c964479985d03668bed7060.png"></p>
<p>##4.Tomcat安装教程（以tomcat 9.0.54 为例（其二））</p>
<p>官网下载：<a target="_blank" rel="noopener" href="http://tomcat.apache.org/">http://tomcat.apache.org/</a></p>
<p><img src="https://pic8.58cdn.com.cn/nowater/webim/big/n_v215b96886744d4709a4065d2d797b36fc.png"></p>
<p>点击Download后跳转到下面的界面</p>
<p><img src="https://pic8.58cdn.com.cn/nowater/webim/big/n_v2da9151cf918b48fca1c346bf3ba7afc1.png"></p>
<p>进行下载，选择自己的文件路径下载</p>
<p>下载好之后点击安装程序，前面可按照步骤进行傻瓜式安装</p>
<p>!(<a target="_blank" rel="noopener" href="https://pic1.58cdn.com.cn/nowater/webim/big/n_v27e0bf10515104967b90e77525c971101.png">https://pic1.58cdn.com.cn/nowater/webim/big/n_v27e0bf10515104967b90e77525c971101.png</a>)</p>
<p><img src="https://pic3.58cdn.com.cn/nowater/webim/big/n_v2b1f140d92cd440c7a08a174837343953.png"></p>
<p><img src="https://pic8.58cdn.com.cn/nowater/webim/big/n_v2d5a759a9cdd94098a3e6e0f35c7a48f7.png"></p>
<p><img src="https://pic2.58cdn.com.cn/nowater/webim/big/n_v2204b93027adc439dac1f100111fe2608.png"></p>
<p><img src="https://pic3.58cdn.com.cn/nowater/webim/big/n_v27371fa58b15942a3b26721f835c15765.png"></p>
<p>这里需要选择jdk，才可继续安装</p>
<p><img src="https://pic5.58cdn.com.cn/nowater/webim/big/n_v2dc014c9c4e584d2ab7e18433dc7d4c06.png"></p>
<p><img src="https://pic6.58cdn.com.cn/nowater/webim/big/n_v271a386957a7c40a6bfc65659358e4d35.png"></p>
<p>下载完成后点击Finish即可运行Tomcat</p>
<p><img src="https://pic4.58cdn.com.cn/nowater/webim/big/n_v261e0535a77fd45bb955e074f3870b74e.png"></p>
<p>运行结果如图</p>
<p><img src="https://pic5.58cdn.com.cn/nowater/webim/big/n_v29f8a45fad160421897eb42a08d588f97.png"></p>
<h1 id="Tomcat环境变量设置"><a href="#Tomcat环境变量设置" class="headerlink" title="Tomcat环境变量设置"></a>Tomcat环境变量设置</h1><p>右键电脑选择属性</p>
<p><img src="https://pic2.58cdn.com.cn/nowater/webim/big/n_v21011f8f4d648419390bcc39537232700.png"></p>
<p>win10用户选择右边栏中的高级系统设置后在选择环境变量在系统变量中新建变量，</p>
<p>变量名为：<strong>CATALINA_HOME</strong>    </p>
<p>变量值为：<strong>tomcat中bin文件所在的路径</strong></p>
<p><img src="https://pic5.58cdn.com.cn/nowater/webim/big/n_v2189972c4b63a465b819f13d9fbfbd9c9.png"></p>
<p>环境变量配置好后，打开tomcat的bin文件<img src="https://pic7.58cdn.com.cn/nowater/webim/big/n_v287a028bdadb543abaa31f535de09407f.png"></p>
<p>选择startup.bat点击运行</p>
<p><img src="https://pic6.58cdn.com.cn/nowater/webim/big/n_v25b18bdf02f6f44d484cd6f7c80ec412c.png"></p>
<p>运行成功后是如下情况（乱码情况可以不用去管）</p>
<p><img src="https://pic8.58cdn.com.cn/nowater/webim/big/n_v2ec0baa4d66ee472d86bb2d7aec694591.png"></p>
<p>随后可以在浏览器中打开 http：//localhost:8080 效果为下图所示</p>
<p><img src="https://pic3.58cdn.com.cn/nowater/webim/big/n_v2cbefbd21a8f64a939c3f8423d48e57ee.png"></p>
<p>实现此效果图Tomcat既为安装完成。</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/11/01/Tomcat%E5%AE%89%E8%A3%85/" data-id="ckworu9s600017ow36p611x2w" data-title="tomcat" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/tomcat/" rel="tag">tomcat</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2021/11/02/MySQL%E5%AE%89%E8%A3%85/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          MySQL安装
        
      </div>
    </a>
  
  
    <a href="/2021/10/29/hello-world/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Hello World</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/MySQL%E5%AE%89%E8%A3%85/" rel="tag">MySQL安装</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/tomcat/" rel="tag">tomcat</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/MySQL%E5%AE%89%E8%A3%85/" style="font-size: 10px;">MySQL安装</a> <a href="/tags/tomcat/" style="font-size: 10px;">tomcat</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/11/">November 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/10/">October 2021</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2021/11/02/MySQL%E5%AE%89%E8%A3%85/">MySQL安装</a>
          </li>
        
          <li>
            <a href="/2021/11/01/Tomcat%E5%AE%89%E8%A3%85/">tomcat</a>
          </li>
        
          <li>
            <a href="/2021/10/29/hello-world/">Hello World</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 John Doe<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.4.1.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>